<!--
 * new page
 * @author: dh
 * @since: 2023-12-18
 * Layout.vue
-->
<template>
  <el-container class="elContainer">
    <el-header>
      <Header></Header>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <Menu></Menu>
      </el-aside>
      <el-container>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </el-container>
</template>

<script setup lang="ts">
import Header from "./header/Header.vue";
import Menu from "./menu/Menu.vue";
</script>

<style lang="scss" scoped>
.elContainer {
  width: 100% !important;
  .el-header {
    padding: 0;
  }
  .el-aside {
    height: 100vh;
    overflow-y: auto;
  }
  .el-main {
    padding: 0px 16px !important;
    height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .el-main::-webkit-scrollbar {
    width: 0;
  }
}
</style>
